package businesslogic.frame;

import java.rmi.RemoteException;

import businesslogicservice.frameblservice.PublishFrameBLService;
import po.framepo.Frame;
import useDatabase.java.insertInfo;
import useDatabaseService.InsertInfoImpli;
import vo.publishframevo.FrameVO;
import Enum.ResultMessage;

public class PublishFrame implements PublishFrameBLService {

	@Override
	public void publishFrame(FrameVO frameVO) throws RemoteException {
		InsertInfoImpli insertInfo = new insertInfo();
		insertInfo.insert(
				"frame",
				"'" + frameVO.getModule().toString() + "','"
						+ frameVO.getCourseNecessity().toString() + "','"
						+ frameVO.getClassification() + "','"
						+ frameVO.getCourseName() + "'," + frameVO.getCredit()
						+ ",'" + frameVO.getTerm().getStart() + ";"
						+ frameVO.getTerm().getEnd() + "'");
	}

}
